package com.project.logistics.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.project.logistics.bean.Repairs;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by94988 on 2021/3/19 16:49
 */
public interface RepairsService extends IService<Repairs> {

    List<Repairs> getUndealrepairs();
//    List<Repairs> getRepairsCount(String id);
    int setRepairman(String serviceUserId, int repairsId);
    Repairs getRepairById(int id);
    int deleteRepairs(int repairsId);
    List<Repairs> getAllRepairs();
    Repairs getRepair(int repairsId);
    List<Repairs> getRepairsByUserId(String userId);
    List<Repairs> getRepairsByRepairsmanId(String repairsmanId);
    void insertRepairs(Repairs repairs);
    void updateRepairs(Repairs repairs);
    List<Repairs> getRepairsByRepairsmanIdAndStatus(String repairsmanId,int repairsStatus);
    void updateRepairsStatus(int repairsStatus, int repairsId);


    List<Repairs> getAllUnRepairs();

    List<Repairs> getAllDealRepairs();

}
